/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jili.ubert.client.antotest;

import com.jili.ubert.dao.LocalData;
import com.jili.ubert.dao.db.OrderExecuteProgress;
import org.hibernate.Transaction;

/**
 *
 * @author ChengJiLi
 */
public class H2DHibnate {

    public static void main(String[] args) {
        GenList ls = new GenList();
        Transaction t = LocalData.getSession().beginTransaction();
        for (OrderExecuteProgress oo : ls.genOrderExecuteProgressList(100)) {
            LocalData.getSession().merge(oo);
        }
        t.commit();
        LocalData.getSession().close();
    //    LocalData.handler.createFilter(t, string)
    }
}
